package com.hph.demo.test01;

/**
 * @author hph
 */
public class ClassLoaderDemo extends ClassLoader{

    @Override
    public Class<?> loadClass(String name) throws ClassNotFoundException {

        System.out.println("正在用自定义的加载器记载类");
        /*if(name.contains("")) {
            findClass("")
            return myFindClass(name);
        }*/
        return super.loadClass(name);
    }

    private Class<?> myFindClass(String name) {

        //TODO
        return null;
    }
}
